home *** CD-ROM | disk | FTP | other *** search
- Path: bnr.co.uk!news
- From: Jason Mann <jasman@nortel.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: gettimeofday() makes me mad !
- Date: Thu, 07 Mar 1996 09:56:45 +0000
- Organization: BNR Europe Limited, Harlow, GB
- Message-ID: <313EB2DD.42C7@nortel.co.uk>
- References: <208_9602292012@dudd.uniserve.com> <3136F957.5340@cmt.lpr.mail.carel.fi> <danpop.826026273@rscernix>
- NNTP-Posting-Host: 47.131.129.178
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/712)
- MIME-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
-
- Dan Pop wrote:
-
- > >In Tandem, no. In AS/400, no. In ... (fill in your favorite
- > >machine). In Unix, use the function 'ftime'.
- >
- > Don't! In Unix, gettimeofday() is the right thing. ftime is obsolete
- > and is provided only for compatibility with very old applications
- > (on some systems (e.g. HP-UX, AIX and Solaris) you have to link special
- > compatibility libraries to get it).
-
-
- Where does the function getclock() come into it? As far as I can
- remember, gettimeofday() isn't available on a DEC Alpha, but getclock()
- is (which can be used to provide a similar function).
- Are there any other functions which provide sub-second timing
- facilities other than ftime(), getclock() and gettimeofday()?
-
- PS. ftime() is available in TurboC as well.
-
-
- Jason Mann
- jwm@sys.uea.ac.uk jasman@nortel.co.uk
-